<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>易优名品</title>
    <link rel="stylesheet" href="__LayUI__/css/layui.css">
    <link rel="stylesheet" href="__Admin__/css/admin.scss">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
   {include file="layout/head" /}

    {include file="layout/sidebar" /}

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div id="mainContain">
            <div class="layui-row">
                <a href="{:url('admin/add')}">新增管理员</a>   
            </div>
            <table class="layui-table">
                <colgroup>
                  <col width="150">
                  <col width="200">
                  <col width="200">
                  <col>
                </colgroup>
                <thead>
                  <tr>
                    <th>ID</th>
                    <th>用户名</th>
                    <th>用户组</th>
                    <th>操作</th>
                  </tr> 
                </thead>
                <tbody>
                    {volist name="res" id="vo"}
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.username}</td>
                        <td>{$vo.group_title}</td>
                        <td>
                            <a href="{:url('edit',array('id'=>$vo['id']))}">修改</a>
                            <a href="{:url('del',array('id'=>$vo['id']))}">删除</a>
                        </td>
                    </tr>
                    {/volist}
                </tbody>
             </table>
            <nav>
                {$res->render()}
            </nav>
        </div>
    </div>

    {include file="layout/footer" /}

</div>
<script src="__LayUI__/layui.js"></script>
<script>
    layui.use('element', function(){      
        
             
});


</script>
</body>
</html>